package ParseWhere;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


/**
 *
 * @author DOHUY91
 */
public class CellDefinition {
    public Object m_obj;
    public String m_definition;

    public String getM_definition() {
        return m_definition;
    }

    public void setM_definition(String m_definition) {
        this.m_definition = m_definition;
    }

    public Object getM_obj() {
        return m_obj;
    }

    public void setM_obj(Object m_obj) {
        this.m_obj = m_obj;
    }
            
    public CellDefinition() {
    }

    public CellDefinition(Object m_obj, String m_definition) {
        this.m_obj = m_obj;
        this.m_definition = m_definition;
    }

    @Override
    public String toString() {
        try{
            if (m_definition.equals("int")){            
                return ((Integer) this.m_obj).toString();      
            }            
            return (String)m_obj;        
        }
        catch (Exception e) {
            return "N";
        }
    }
}
